str=input()
num=[int (n) for n in str.split()]
x=num[0]
y=num[1]
r=0 
c=x-r
while r*4+c*2<y:
        r = r+1
        c = x-r
        if r*4+c*2 == y:  
            print('鸡的个数为',c)
            print('兔子的个数为',r)
            break
        elif  r*4+c*2>y:
            print('无解')         